<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>">
<title>${site_title }--用户功能</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="${site_keywords }">
<meta http-equiv="description" content="${site_description }">
<c:import url="/res/resLoader_admin.jsp"></c:import>
<script type="text/javascript" src="manage/user/userFunctionTree.js"></script>
<link rel='stylesheet' type='text/css' href='<%=basePath %>res/css/tree.css'/>
</head>
<body style="text-align: left;">
	<div id="content">
		<ul id="treeArea"></ul>
		<div id="treeMenu" class="easyui-menu" style="width:120px;">
			<div id="menu_item_editNode" onclick="javascript:editNode()"><span>Edit Node</span></div>
			<div id="menu_item_dropNode" onclick="javascript:dropNode()"><span>Drop Node</span></div>
			<div id="menu_item_addNode" onclick="javascript:addNode()"><span>Add Node</span></div>
			<div id="menu_item_addChild" onclick="javascript:addChildNode()"><span>Add Child Node</span></div>
			<div id="menu_item_hide" onclick="javascript:$('#treeMenu').menu('hide');"><span>Hide</span></div>
		</div>
		
		<div style="position: absolute ;width: 300px;top: 5px;top: 10px;right: 2px;line-height: 20px;">
			<center>功能测试区域</center><br/>
			<ul>
				<li>
					<a href="javascript:getCurrentNode()">当前节点</a>
				</li>
				<li>
					<a href="javascript:getFunctionTreeDirect()">重新加载功能树</a>
				</li>
				<li>
					<a href="javascript:refreshTree()">刷新功能树</a>
				</li>
				<li>
					<a href="javascript:testAddNode()">增加节点</a>
				</li>
				<li>
					<a href="javascript:testInsertNode()">插入节点</a>
				</li>
				<li>
					<a href="javascript:testDelNode()">删除节点</a>
				</li>
			</ul>
			<br/>
			上层节点id:<input type="text" id="treeNodeParentId" value=""/><br/>
			新加节点id:<input type="text" id="treeNodeId" value=""/><br/>
			节点名称：<input type="text" id="treeNodeName" value=""/><br/>
			<p>
				<input type="button" value="div层遮罩" onclick="javascript:$('#treeArea').mask({msg:'正在加载功能树...'})" /><br/>
				<input type="button" value="关闭遮罩" onclick="javascript:$('#treeArea').unmask()" /><br/>
				<input type="button" value="全部遮罩" onclick="javascript:$(window.document).mask({msg:'DIV层遮罩'})" /><br/>
				<input type="button" value="关闭全部遮罩" onclick="javascript:$(window.document).unmask()" /><br/>
			</p>
		</div>
	</div>		
</body>
</html>
